<?php
class Module {
    private $name;
    private $dir;
    protected $action_access = array();
    
    
    public function init() {}
    
    
    public function get_action_access($action_name) {
        if (isset($this->action_access[$action_name])) {
            return $this->action_access[$action_name];
        } else {
            return ACTION_ACCESS_PRIVATE;
        }
    }
    
    public function set_name($name) {
        $this->name = $name;
    }
    
    public function model($model_name) {
        return tos_model($this->name, $model_name);
    }
    
    
    public function block($block_name) {
        return tos_block($this->name, $block_name);
    }
}
?>